<?php
require_once 'conn.php';
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<a href="adduser.html">添加用户</a>

<table style='text-align: left;'border='1'>
    <tr><td>id</td><th>名字</th><th>密码</th><td>修改</td><td>删除</td></tr>
<?php
header("Content-type:text/html;charset=utf-8");
$result=mysql_query("select * from mm order by id ASC ");
$count = mysql_num_rows($result);

for($i=0;$i<$count;$i++){
    $result_arr = (mysql_fetch_assoc($result));

    $id=$result_arr['id'];
    $user=$result_arr['user'];
    $pass=$result_arr['pass'];
  echo "<tr><td>$id</td><td>$user</td><td>$pass</td><td><a href='edituser.php?id=$id'>修改</a></td><td><a href='del.php?id=$id'>删除</a></td></tr>";

}

?>
</table>
</body>
</html>